package com.gst.cloudygovernance.fragment;

import android.os.Bundle;
import android.support.v7.widget.SearchView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.gst.cloudygovernance.R;
import com.gst.cloudygovernance.adapter.RunFragmentAdapter;
import com.gst.cloudygovernance.base.BaseFragment;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by CHENG on 2017/12/18.
 */

public class RunFragment extends BaseFragment {
    @Bind(R.id.lv)
    ListView lv;
    @Bind(R.id.sv)
    SearchView sv;

    @Override
    public View initView() {
        View view = View.inflate(mContext, R.layout.fragment_run, null);

        return view;
    }

    @Override
    public void initData() {
        super.initData();
        RunFragmentAdapter adapter = new RunFragmentAdapter(mContext);
        lv.setAdapter(adapter);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO: inflate a fragment view
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }
}
